package com.aims.logic.example.component;

import com.aims.logic.sdk.annotation.LogicItem;
import org.springframework.stereotype.Component;

@Component
public class Util {
    @LogicItem(name = "随机数", group = "工具", memo = "返回一个0-maxNum的随机数")
    public String randomNumber(int maxNum) {
        return String.valueOf((int) (Math.random() * maxNum));
    }
}
